namespace SilverSea.Untilities
{
    using System;
    using System.Runtime.InteropServices;

    public class Win32
    {
        private static IntPtr intptr_0 = IntPtr.Zero;

        [DllImport("user32.dll")]
        public static extern int GetSystemMetrics([MarshalAs(UnmanagedType.I4)] SystemMetrics metric);
        [DllImport("ntdll.dll")]
        public static extern int memcpy(int dst, int src, int count);
        [DllImport("user32.dll")]
        public static extern void SetWindowPos(IntPtr hwnd, IntPtr hwndInsertAfter, int X, int Y, int width, int height, uint flags);
        public static void SetWinFullScreen(IntPtr hwnd)
        {
            SetWindowPos(hwnd, intptr_0, 0, 0, GetSystemMetrics(SystemMetrics.CXSCREEN), GetSystemMetrics(SystemMetrics.CYSCREEN), 0x40);
        }

        public enum SystemMetrics
        {
            CXFRAME = 0x20,
            CXSCREEN = 0,
            CYCAPTION = 4,
            CYFRAME = 0x21,
            CYMENU = 15,
            CYSCREEN = 1
        }
    }
}

